/**
 * Formulario para Salvar um Projeto
 *
 * @this {UISaveProjectDialog}
 * @version
 */

function UISaveProjectDialog() {

    /**
     * Variaveis
     */

    /**
     * Inicializa o objeto da classe
     */
    this.init = function() {

    }

    /**
     * Funcoes
     */
    this.showSaveProjectDiv = function() {
        var oLayoutProject = ModelInstance.getLayoutProject();
        if(oLayoutProject.projectIsOpened()) {
            oLayoutProject.saveProject(false);
        } else {
            alert(EAppInfoMessages.eProjectIsNotOpen);
        }
    }

    this.showSaveAsProjectDiv = function() {
        var oLayoutProject = ModelInstance.getLayoutProject();
        if(oLayoutProject.projectIsOpened()) {
            oLayoutProject.saveAsProject();
        } else {
            alert(EAppInfoMessages.eProjectIsNotOpen);
        }
    }

    /**
     * Chamada do inicializador da classe
     */
    this.init();
}

